package com.cychat.mall.service;

import com.Cychat.commons.entity.pojo.ShoppingCart;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cychat.mall.entity.DTO.ShoppingCartDTO;
import com.cychat.mall.entity.DTO.UpdateCartQuantitiesRequest;

import java.util.List;

public interface ShoppingCartService extends IService<ShoppingCart> {
    void updateCartQuantities(Long userId, UpdateCartQuantitiesRequest request);

    ShoppingCart getCartItem(Long userId, Integer productId);

    void updateCartItemQuantity(Long userId, Integer productId, int i);

    void deleteCartItems(Long userId, List<Integer> cartIds);

    List<ShoppingCart> listByUserIdAndCartIds(Long userId, List<Integer> cartIds);
}
